package com.itheima.ood.inner.demo03;

public class Body {

    private int weight = 30;

    class Heart {

        private int weight = 20;

        public void jump() {

            int weight = 10;
            System.out.println("心脏在跳动 " + weight);//10
            System.out.println("心脏在跳动 " + this.weight);//20
            System.out.println("心脏在跳动 " + new Body().weight);//30
            System.out.println("心脏在跳动 " + Body.this.weight);

        }

    }

}
